package EventBus.multipleeventtypes;

import com.google.common.eventbus.Subscribe;

import entity.BaseEntity;
import entity.Cat;
import entity.Users;

/**
 * Created by wuzhao on 2017/3/8 0008.
 */
public class MultipleListeners {
    @Subscribe
    public void task1(String s) {
        System.out.println("do task1(" + s +")");
    }

    @Subscribe
    public void task2(String s) {
        System.out.println("do task2(" + s +")");
    }

    @Subscribe
    public void intTask(Integer i) {
        System.out.println("do intTask(" + i +")");
    }

    @Subscribe
    public void userTask(Users user) {
        System.out.println("do userTast(" + user +")");
    }

    @Subscribe
    public void catTask(Cat cat) {
        System.out.println("do catTast(" + cat +")");
    }

    @Subscribe
    public void baseTask(BaseEntity baseEntity) {
        System.out.println("do baseEntityTast(" + baseEntity +")");
    }
}
